package com.yzt.zhuju.arouter;

import android.app.Application;

import com.alibaba.android.arouter.launcher.ARouter;
import com.yzt.p_base.BuildConfig;

/**
 * author : bob
 * date   : 2022/11/29
 * desc   :
 */
public class BaseRouter {

    private static BaseRouter mInstance;

    public static BaseRouter getInstance() {
        if (mInstance == null) {
            mInstance = new BaseRouter();
        }
        return mInstance;
    }

    public void init(Application app) {
        if (BuildConfig.DEBUG) {
            ARouter.openLog();
            ARouter.openDebug();
            ARouter.printStackTrace();
        }
        ARouter.init(app);
    }
}
